import db from "@/lib/db/index";

export type Users = Awaited<ReturnType<typeof db.users.findUnique>>
export type Roles = Awaited<ReturnType<typeof db.roles.findUnique>>

export const sexInfo ={
    female:"女",
    male:"男"
} as const


export const statusInfo ={
    freeze:"冻结",
    active:"激活",
    banned:"封禁"
} as const

export type SexInfoKey= keyof typeof sexInfo;
export type StatusInfoKey= keyof typeof statusInfo;
export type UserInfo = Omit<Exclude<Users,null>,"updatedAt"|"createdAt"|"password"> & { updatedAt: string, createdAt: string };


